#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void mul(int row, int col)
{
	for (int i = 1;i <= row;i++)
	{
		for (int j = 1;j <= i;j++)
		{
			printf("%d*%d=%d ", i, j, i * j);
		}
		printf("\n");
	}
}
int main()
{
	int row = 0;
	int col = 0;
	scanf("%d%d", &row, &col);
	mul(row, col);
	return 0;

}